﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Setting;

namespace ZeuS
{
    public partial class FormOptions : Form
    {
        public FormOptions()
        {
            InitializeComponent();
        }

        Props prop = new Props();
        private void writeSetting()
        {
            prop.Fields.dbpath = Op_tE_DBpath.Text;
            prop.WriteXml();
        }

        private void Op_sB_Sv_Click(object sender, EventArgs e)
        {
            if (Op_tE_DBpath.Text.Length != 0)
            {
                writeSetting();
                this.Hide();
            }
            else
                MessageBox.Show("Заполните все поля");
        }
    }
}
